package com.ulife.gw.provider;

import com.alibaba.dubbo.config.annotation.Service;
import com.google.common.collect.Lists;
import com.ulife.gw.api.UserService;
import com.ulife.gw.api.model.User;

import java.util.List;

/**
 * Created by Rocky on 2015/12/18.
 */
@Service
public class UserServiceImpl implements UserService {

    public User get(String id) {
        return new User(id,"Rocky","123.com");
    }

    public List<User> list() {
        return Lists.newArrayList(new User("1","Rocky","123.com"),
                new User("2","Merlin","123.com"));
    }
}
